<template>
  <button @click="handleClick">click</button>
  <h1>{{ res }}</h1>
  <base-no-data/>
  <base-no-data>请先选择数据</base-no-data>
</template>

<script setup>
import {ref} from 'vue';
import api from '@/api'
import BaseNoData from "@/components/Base/BaseNoData.vue";

const res = ref();


async function handleClick() {
  let data = await api.demo.time();
  res.value = data.data
}
</script>